package com.binhai.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class UserService {
    @Autowired
    private UserDao dao;
    public List getAllInfos() {
        return dao.getAllInfos();
    }
    public Map login(UserBean bean){
        return dao.login(bean);
    }

    public Map addInfo(UserBean bean) {
        return dao.addInfo(bean);
    }

    public Map deleteInfo(int id) {
       return dao.deleteInfo(id);
    }


    public Map modifyInfo(UserBean bean) {
        return dao.modifyInfo(bean);
    }

    public List selectByWhere(String name) {
       return dao.selectByWhere(name);
    }
}